home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / grapdrvs / wntdrvs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-31  |  2.6 KB  |  97 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 1.0, Jan. 1992   *
  5. ******************************************************************************
  6. * Global definitions of    wntdrvs interface.                         *
  7. *****************************************************************************/
  8.  
  9. #ifndef    WNTDRVS_H    /* Define only once */
  10. #define    WNTDRVS_H
  11.  
  12. #define APP_CLASS        "wntdrvs"
  13. #define APP_TITLE        "Irit Display Device"
  14. #define APP_MENU        1000
  15. #define APP_VIEW_CLASS        "IritViewClass"
  16. #define APP_TRANS_CLASS        "IritTransClass"
  17.  
  18. #define IDM_FILE        1
  19. #define IDM_FILE_SAVE        11
  20. #define IDM_FILE_SAVE_AS    12
  21. #define IDM_FILE_QUIT        13
  22.  
  23. #define IDM_MOUSE        2
  24. #define IDM_MOUSE_MORE        21
  25. #define IDM_MOUSE_LESS        22
  26.  
  27. #define IDM_STATE        3
  28. #define IDM_STATE_MORE_ISO    31
  29. #define IDM_STATE_LESS_ISO    32
  30. #define IDM_STATE_FINER_APPROX    33
  31. #define IDM_STATE_COARSER_APPROX 34
  32. #define IDM_STATE_SHORTER_VEC    35
  33. #define IDM_STATE_LONGER_VEC    36
  34. #define IDM_STATE_WIDE_LINES    37
  35. #define IDM_STATE_THIN_LINES    38
  36.  
  37. #define IDM_TOGGLE        4
  38. #define IDM_TGLS_SCREEN        41
  39. #define IDM_TGLS_PERSP        42
  40. #define IDM_TGLS_DEPTH_CUE    43
  41. #define IDM_TGLS_DOUBLE_BUFFER  44
  42. #define IDM_TGLS_DRAW_SOLID    45
  43. #define IDM_TGLS_INTERNAL    46
  44. #define IDM_TGLS_VRTX_NRML    47
  45. #define IDM_TGLS_POLY_NRML    48
  46. #define IDM_TGLS_CTL_MESH    49
  47. #define IDM_TGLS_SRF_POLYS    50
  48. #define IDM_TGLS_4_PER_FLAT    51
  49.  
  50. #define    IDM_VIEWS        6
  51. #define    IDM_VIEW_FRONT        60
  52. #define IDM_VIEW_SIDE        61
  53. #define IDM_VIEW_TOP        62
  54. #define IDM_VIEW_ISOMETRY    63
  55.  
  56. #define DEFAULT_TRANS_WIDTH    200
  57. #define DEFAULT_TRANS_HEIGHT    500
  58. #define DEFAULT_VIEW_WIDTH    400
  59. #define DEFAULT_VIEW_HEIGHT    400
  60.                                    
  61. #define ARGCV_LINE_LEN    1000
  62. #define ARGCV_MAX_WORDS    100
  63.  
  64. #define WNT_MAP_X_COORD(x) ((int) (IGViewWidth2 + x * IGViewWidth2))
  65. #define WNT_MAP_Y_COORD(y) ((int) (IGViewHeight2 - y * IGViewHeight2))
  66.  
  67. #define SET_MENU_FLAGS(Bool)  (MF_STRING | (Bool ? MF_CHECKED : 0))
  68.  
  69. extern unsigned int
  70.     IGViewWidth,
  71.     IGViewHeight,
  72.     IGViewWidth2,
  73.     IGViewHeight2;
  74. extern HBRUSH
  75.     IGBackGroundBrush;
  76. extern COLORREF
  77.     IGBackGroundColor,
  78.     IGCrntColorLowIntensity,
  79.     IGCrntColorHighIntensity,
  80.     IGColorsLowIntensity[IG_MAX_COLOR + 1],
  81.     IGColorsHighIntensity[IG_MAX_COLOR + 1];
  82. extern HPEN
  83.     IGCurrenthPen;
  84. extern HWND
  85.     IGhWndView, IGhWndTrans;
  86. extern HDC
  87.     IGCurrenthDC;
  88. extern HMENU
  89.     IGGlblStateMenu;
  90.  
  91. int RedrawViewWindow(HWND hWnd, UINT wMsg, WPARAM wParam);
  92. void IGSetColorIndex(int c);
  93. void IGSetColorIndex2(int color, int width);
  94. void IGSetColorRGB(int Color[3]);
  95.  
  96. #endif /* WNTDRVS_H */
  97.